package com.yunxi.controller.eai;

import com.yunxi.bizToHub.pojo.TPFCreditInvestigationVO;
import com.yunxi.bizToHub.pojo.TPFPatchBoltVO;
import com.yunxi.bizToHub.service.TpfDubboService;
import com.yunxi.core.web.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/9/16.
 */
@RestController
@RequestMapping("/esb/api")
@Api(tags = "esb:manage", description = "接收esb信息")
public class TpfController {
    @Autowired
    private TpfDubboService tpfDubboServiceImpl;


    @PostMapping("/sendCreditInvestigationPms2YCYJ")
    @ApiOperation(value = "PMS系统进件信息给有车有家系统")
    public ApiResult sendCreditInvestigationPms2YCYJ(@RequestBody TPFCreditInvestigationVO var1) throws Exception {
        ApiResult apiResult = tpfDubboServiceImpl.sendCreditInvestigationPms2YCYJ(var1);
        return apiResult;
    }

    @PostMapping("/sendPatchBoltVOPms2YCYJ")
    @ApiOperation(value = "PMS系统传递补件信息给有车有家系统")
    public ApiResult sendPatchBoltVOPms2YCYJ(@RequestBody TPFPatchBoltVO var1) throws Exception {
        ApiResult apiResult = tpfDubboServiceImpl.sendPatchBoltVOPms2YCYJ(var1);
        return apiResult;
    }
}
